<%@ page language="java" pageEncoding="UTF-8" import="java.util.*,com.knife.news.manage.thread.SiteThreads"%><%
session.removeAttribute("task");
String sid=request.getParameter("sid")==null?"":request.getParameter("sid");
%>
<jsp:useBean id="task" scope="session"
    class="com.knife.service.GenerateSiteTask"/>
<%
task.setSid(sid);
task.init();
task.setRunning(true);
SiteThreads.getThread(task).start();
//new Thread(task).start();
%>